/*
 * @Author: 何京 11238114+h_917796875@user.noreply.gitee.com
 * @Date: 2022-10-12 10:46:31
 * @LastEditors: 何京 11238114+h_917796875@user.noreply.gitee.com
 * @LastEditTime: 2022-10-17 21:19:30
 * @FilePath: \br-ui项目\team-cooperation-project\src\api\article.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 资讯管理API
import {get, post } from '@/utils/request'
import {get, post } from '@/utils/request'

// 查询资讯信息

export function getArticle(params) {
    return get('/article/pageQuery', params)
    return get('/article/pageQuery', params)
}

// 修改资讯状态/article/changeStatus
export function changeArticleStatus(data) {
    return post('/article/changeStatus', data)
    return post('/article/changeStatus', data)
}

// 删除资讯信息 /article/deleteById
export function deleteArticleById(params) {
    return get('/article/deleteById', params)
    return get('/article/deleteById', params)
}

// 新增或修改资讯信息 /article/saveOrUpdate
export function saveOrUpdateArticle(data) {
    return post('/article/saveOrUpdate', data)
}